package com.itheima.localdatetime;

import java.time.LocalDateTime;
import java.util.Scanner;

/**
 * @Author 王加鑫
 * @Date 2021/5/12 10:45
 * @Version 1.0
 */
public class LocalDateTimeTest03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入时间:");
        int year = sc.nextInt();
        LocalDateTime localDateTime = LocalDateTime.of(year, 3, 1, 11, 11, 11);
        int day = localDateTime.plusDays(-1).getDayOfMonth();
        System.out.println("二月天数为: " + day);



    }
}
